//
//  ShopOrderPriceTableViewCell.m
//  jianpai
//
//  Created by yrapp on 16/1/15.
//  Copyright © 2016年 yrapp. All rights reserved.
//

#import "ShopOrderPriceTableViewCell.h"

@implementation ShopOrderPriceTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
//                UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 5, kWidth, 80)];
//                backView.backgroundColor = [UIColor whiteColor];
//                backView.layer.shadowColor = [UIColor grayColor].CGColor;
//                backView.layer.shadowOffset = CGSizeMake(0, 0);
//                backView.layer.shadowOpacity = 1;
//                [self.contentView addSubview:backView];
        
        UIImageView *backImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kWidth, 80)];
        backImageView.image = [UIImage imageNamed:@"brand_item_background"];
        [self.contentView addSubview:backImageView];
 
        UILabel *shop = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 20)];
        shop.text = @"商品金额";
        shop.textColor = [UIColor grayColor];
        shop.font = [UIFont systemFontOfSize:15.0];
        [self.contentView addSubview:shop];
        
        _shopPriceLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 100, 10, 90, 20)];
        _shopPriceLabel.textColor = [UIColor redColor];
        _shopPriceLabel.font = [UIFont systemFontOfSize:15.0];
        _shopPriceLabel.textAlignment = NSTextAlignmentRight;
        _shopPriceLabel.text = @"￥32.40";
        [self.contentView addSubview:_shopPriceLabel];
        
        UILabel *youhui = [[UILabel alloc] initWithFrame:CGRectMake(10, 35, 90, 20)];
        youhui.text = @"商品优惠";
        youhui.textColor = [UIColor grayColor];
        youhui.font = [UIFont systemFontOfSize:15.0];
        [self.contentView addSubview:youhui];
        
        _youhuiLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 100, 35, 90, 20)];
        _youhuiLabel.textColor = [UIColor redColor];
        _youhuiLabel.font = [UIFont systemFontOfSize:15.0];
        _youhuiLabel.textAlignment = NSTextAlignmentRight;
        _youhuiLabel.text = @"+￥5";
        [self.contentView addSubview:_youhuiLabel];

        
        
        
        
        UILabel *yun = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, 90, 20)];
        yun.text = @"运费";
        yun.textColor = [UIColor grayColor];
      //  yun.font = [UIFont systemFontOfSize:14.0];
        [self.contentView addSubview:yun];
        
        
        
        _roadPriceLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 100, 60, 90, 20)];
        _roadPriceLabel.textColor = [UIColor redColor];
        _roadPriceLabel.font = [UIFont systemFontOfSize:15.0];
        _roadPriceLabel.textAlignment = NSTextAlignmentRight;
        _roadPriceLabel.text = @"+￥5";
        [self.contentView addSubview:_roadPriceLabel];
    }
    
    return self;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
